slapi-errorlog-file
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Fri, 28 Jul 2017 01:04:41 +0000 (02:04 +0100)
committerRyan Tandy <ryan@nardis.ca>
Fri, 28 Jul 2017 01:04:41 +0000 (02:04 +0100)
The slapi error log file defaults to /var/errors given our setting
of --localstatedir.  Move it to /var/log/slapi-errors instead.

Debian-specific.

Gbp-Pq: Name slapi-errorlog-file

servers/slapd/slapi/slapi_overlay.c

index 3ee732af4d114a1aee38858d1e388b60892241ae..3e983e0ba0ac0d64aca6a44677020a9fa107474d 100644 (file)
@@ -933,7 +933,7 @@ int slapi_over_config( BackendDB *be, ConfigReply *cr )
                ldap_pvt_thread_mutex_init( &slapi_printmessage_mutex );
 
                if ( slapi_log_file == NULL )
-                       slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "errors" );
+                       slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "log" LDAP_DIRSEP "slapi-errors" );
 
                rc = slapi_int_init_object_extensions();
                if ( rc != 0 )